package com.wd.attend.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wd.common.annotation.Excel;
import com.wd.common.core.domain.BaseEntity;

/**
 * 考勤结果对象 attend_result
 * 
 * @author liumingkun
 * @date 2023-11-16
 */
public class AttendResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考勤结果Id */
    private Long resultId;


    /** 员工Id */
    @Excel(name = "员工工号")
    private String staffNum;

    /** 上班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考勤日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date attendDate;

    /** 上班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkinTime;

    /** 下班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkoutTime;

    /** 考勤结果 */
    @Excel(name = "考勤结果")
    private String attendResult;


    /** 考勤分组Id */
    private Long groupId;

    public void setResultId(Long resultId) 
    {
        this.resultId = resultId;
    }

    public Long getResultId() 
    {
        return resultId;
    }

    public void setStaffNum(String staffNum) 
    {
        this.staffNum = staffNum;
    }

    public String getStaffNum() 
    {
        return staffNum;
    }

    public Date getAttendDate() {
        return attendDate;
    }

    public void setAttendDate(Date attendDate) {
        this.attendDate = attendDate;
    }

    public void setCheckinTime(Date checkinTime)
    {
        this.checkinTime = checkinTime;
    }

    public Date getCheckinTime() 
    {
        return checkinTime;
    }
    public void setCheckoutTime(Date checkoutTime) 
    {
        this.checkoutTime = checkoutTime;
    }

    public Date getCheckoutTime() 
    {
        return checkoutTime;
    }
    public void setAttendResult(String attendResult) 
    {
        this.attendResult = attendResult;
    }

    public String getAttendResult() 
    {
        return attendResult;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resultId", getResultId())
            .append("staffNum", getStaffNum())
            .append("checkinTime", getCheckinTime())
            .append("checkoutTime", getCheckoutTime())
            .append("attendResult", getAttendResult())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
